<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSortTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sort', function (Blueprint $table) {
            $table->increments('id');
            $table->string('sname', 20);
            $table->integer('pid');
            $table->string('path', 50);
            $table->string('descr', 50)->nullable();
            $table->tinyInteger('state');
            $table->timestamps();
            $table->string('attr1' ,50)->nullable();
            $table->string('attr2' ,100)->nullable();
            $table->string('attr3' ,150)->nullable();
        });
    }


    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sort');
    }
}
